$(".control-image").click(function () {
	
	var typeTest = $(this).attr("data-typeTest");
	ChangeTestObservation(typeTest);

	var direction = ($(this).attr('class').charAt(0) == "h") ? 0 : 1;

	var imageDirection = (direction == 0) ? "horizontal" : "vertical";
	// var disrection = ("#btn-rotate").attr('data-direction');

	switch(arrayTest[typeTest].observation){
		case 0:
			$(this).attr("src", "Images/" + imageDirection + "/line_highlight.PNG");
			if(direction == 0)
				$("#v-" + typeTest).attr("src", "Images/vertical/line.PNG");
			else
				$("#h-" + typeTest).attr("src", "Images/horizontal/line.PNG");
			break;
		case 1:
			$(this).attr("src", "Images/" + imageDirection + "/noline_highlight.PNG");
			if(direction == 0)
				$("#v-" + typeTest).attr("src", "Images/vertical/noline.PNG");
			else
				$("#h-" + typeTest).attr("src", "Images/horizontal/noline.PNG");			
			break;
		default:// case 2:
			$(this).attr("src", "Images/" + imageDirection + "/dot_highlight.PNG");
			if(direction == 0)
				$("#v-" + typeTest).attr("src", "Images/vertical/dot.PNG");
			else
				$("#h-" + typeTest).attr("src", "Images/horizontal/dot.PNG");			
			break;											
	}// witch

	ChangeDisplay(typeTest, arrayTest[typeTest].observation);

});// end click